package com.ali.easyexcel.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@TableName("boot_user")
@Data
public class User implements Serializable {
    //忽略
    @ExcelIgnore
    private Long id;
    //列宽
    @ColumnWidth(25)
    //添加列名
    @ExcelProperty("编码")
    private String code;
    //列宽
    @ColumnWidth(25)
    //添加列名，指定列位置
    @ExcelProperty(value = "名称", index = 0)
    private String name;
    //列宽
    @ColumnWidth(25)
    //添加列名
    @ExcelProperty("创建时间")
    private Long createTime;
    //列宽
    @ColumnWidth(25)
    //添加列名
    @ExcelProperty("修改时间")
    private Long updateTime;
    //列宽
    @ColumnWidth(25)
    //添加列名
    @ExcelProperty("金额")
    private Integer money;
}
